/**
 *  首页
 **/
import request from '@/utils/request'

export default {
  setExamTime(params) {
    return request({
      url: 'sys/setTime/update',
      method: 'get',
      params: params
    })
  },
  getSurplusDay() {
    return request({
      url: '/sys/user/getSurplusDay',
      method: 'get'
    })
  },
  getDcList(params) {
    return request({
      url: '/dc/dcList',
      method: 'get',
      params
    })
  },
  addData(params) {
    return request({
      url: '/dc/addData',
      method: 'post',
      data: params
    })
  },
  dcAddList(params) {
    return request({
      url: '/dc/dcAddList',
      method: 'get',
      params
    })
  },
  changeConversion(params) {
    return request({
      url: '/dc/conversion?str=' + params,
      method: 'post'
    })
  },
  copyList(params) {
    return request({
      url: '/dc/copyList',
      method: 'get',
      params
    })
  },
  mergeList(params) {
    return request({
      url: '/dc/merge',
      method: 'post',
      data: params
    })
  },
  getScheduPageList(params) {
    return request({
      url: '/job/getScheduPageList',
      method: 'get',
      params
    })
  },
  addTaskItem(data) {
    return request({
      url: '/job/addItem',
      method: 'post',
      data
    })
  },
  emitTask(data) {
    return request({
      url: '/job/submitSchedu',
      method: 'post',
      data
    })
  },
  eliminate(data) {
    return request({
      url: '/dc/eliminate?ids=' + data,
      method: 'post'
    })
  },
  getAssetPageList(params) {
    return request({
      url: '/asset/getAssetPageList',
      method: 'get',
      params
    })
  },
  queryDictList(params) {
    return request({
      url: '/sys/dict/getList',
      method: 'get',
      params: params
    })
  },
  getMemberClassTreeList(params) {
    return request({
      url: '/sys/memberClass/getClassList',
      method: 'get',
      params: params
    })
  },
  enginelist(params) {
    return request({
      url: '/engine/list?page=1&limit=10000',
      method: 'get'
    })
  },
  enginesubmit(params) {
    return request({
      url: '/engine/submit',
      method: 'post',
      data: params
    })
  },
  formlist(params) {
    return request({
      url: '/form/list?page=1&limit=10000',
      method: 'get'
    })
  },
  formsubmit(data) {
    return request({
      url: '/form/submit',
      method: 'post',
      data
    })
  },
  statement(data) {
    return request({
      url: '/statement/list?page=1&limit=10000',
      method: 'get'
    })
  },
  statementsubmit(data) {
    return request({
      url: '/statement/submit',
      method: 'post',
      data
    })
  },
  ranklist(data) {
    return request({
      url: '/rank/list?page=1&limit=1000',
      method: 'get'
    })
  },
  addList(data) {
    return request({
      url: '/rank/submit',
      method: 'post',
      data
    })
  },
  deledeRank(data) {
    return request({
      url: '/rank/delete',
      method: 'post',
      data
    })
  },
  dataClassify(data) {
    return request({
      url: '/dataClassify/list?page=1&limit=1000',
      method: 'get'
    })
  },
  dataClassifySubmit(data) {
    return request({
      url: '/dataClassify/submit',
      method: 'post',
      data
    })
  }

}
